{notempty name="goods_list"}
{php}$i=1;{/php}

{foreach $goods_list as $goods}

{if empty(I('get.curpage')) && $i == 1}



<li class="gallery-album-title"><i></i>
  <h4><?php echo date('Y-m-d', $goods['goods_addtime']);?></h4>
</li>

{elseif ($time != date('Y-m-d', $goods['goods_addtime']))}

<li class="gallery-album-title"><i></i>
  <h4><?php echo date('Y-m-d', $goods['goods_addtime']);?></h4>
</li>

{/if}


<li class="fav-item favorites-store-items">
  <div class="goods-thumb"><a href="{:url('shop/Goods/index', ['goods_id' => $goods['goods_id']])}" title="<?php echo $goods['goods_name'];?>" target="_blank"><img src="<?php echo thumb($goods, 240);?>" /></a></div>
  <p class="goods-price">￥<?php echo $goods['goods_promotion_price'];?></p>
</li>
<?php $time = date('Y-m-d', $goods['goods_addtime']);?>

{/foreach}

{/notempty}
